package com.topnav.mc.admin.entity.enums;

/**
 * 报警方式
 * @author lin
 * 1为电话报警, 2为设备报警, 3为短信报警, 4为 GPS报警, 5为视频报警, 6为设备故障报警,
 * 7其他报警;可以为直接组合如12为电话报警或 设备报警-
 */
public enum DeviceAlarmMethod {
    Telephone(1,"电话报警"),
    Device(2,"设备报警"),
    SMS(3,"短信报警"),
    GPS(4,"GPS报警"),
    Video(5,"视频报警"),
    DeviceFailure(6,"设备故障报警"),
    Other(7,"其他报警");

    public int code;
    public String desc;

    private DeviceAlarmMethod(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {return code;}

    public void setCode(int code) {this.code = code;	}

    public String getDesc() {return desc;}

    public void setDesc(String desc) {this.desc = desc;}
}
